﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Events
{
    class MyClass
    {
        public EventHandler Event1;
        public event EventHandler Event2;

        public void F()
        {
            if (Event2 != null)
            {
                Event2(this, EventArgs.Empty);
            }
            
        }
    }
}
